package com.example.demo.mapper;


import com.example.demo.entity.ArticleInfo;
import com.example.demo.entity.vo.ArticleInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int add(ArticleInfo articleInfo0);
    ArticleInfo getDetailByIdAndUid(@Param("id") Integer id,@Param("uid") Integer uid);
    int update(ArticleInfo articleInfo);
    ArticleInfoVO getDetail(@Param("id") Integer id);
    int addRcount(@Param("id") Integer id);
    List<ArticleInfo> getListByUid(@Param("uid")Integer uid);
    int del(@Param("id")Integer id,@Param("uid")Integer uid);
    List<ArticleInfo> getListByPage(@Param("pageSize")Integer pageSize,
                                    @Param("offset")Integer offset);
    Integer getCount();
    int editSave(ArticleInfo articleInfo);
    List<ArticleInfo> getDraftListByUid(@Param("uid")Integer uid);
    int timeoutUpdate(ArticleInfo articleInfo);
    List<ArticleInfo> getTimeoutArticle();
    int addtimeout(ArticleInfo articleInfo);
}
